<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('home/index/index');
});


//后台路由
Route::group(['namespace'=>'Admin'],function(){
    Route::group(['prefix'=>'admin'],function(){
        Route::any('/',['uses'=>'IndexController@index']);

    });
});


//前台路由
Route::group(['namespace'=>'Home'],function(){
    Route::group(['prefix'=>'home'],function(){
        Route::any('index/index',['uses'=>'IndexController@index']);
        Route::any('login/login',['uses'=>'LoginController@login']);
        Route::any('login/login_two',['uses'=>'LoginController@login_two']);
        Route::any('user/index',['uses'=>'UserController@index']);
        Route::any('user/login',['uses'=>'UserController@login']);
        Route::any('login/ajax',['uses'=>'LoginController@ajax']);
        Route::any('user/info',['uses'=>'UserController@info']);

    });
});